/**************************************************************************/
/* FILE NAME: eQADC_OPS.h                                                 */
/* DESCRIPTION:                                                           */
/* This file contains prototypes and definitions for the MPC5554          */
/* initialize and operate the eQADC.                                      */
/*                                                                        */
/*========================================================================*/
/* ORIGINAL AUTHOR:  Paul Schlein                                         */
/* REV      AUTHOR         DATE          DESCRIPTION OF CHANGE            */
/* ---      -----------    -----------   ---------------------            */
/* 2.1      P. Schlein     14/Sep/11     Rename Queues                    */
/* 2.0      P. Schlein     28/July/11    Redesign for Full Queue Ops      */
/* 1.0      P. Schlein     18/Mar/10     Initial version.                 */
/**************************************************************************/

#ifndef EXTERN
#define EXTERN extern
#define NOINIT
#endif

#include "cpu.h"

// list of command Qs - sizes must be exactly right
EXTERN vuint32_t ADC_CmdQ0[2];		// Fast
EXTERN vuint32_t ADC_CmdQ1[22];		// Slow
EXTERN vuint32_t ADC_CmdQ2[2];		// unused
EXTERN vuint32_t ADC_CmdQ3[2];		// Knock from eTPU 28 AD0/AD1 and AD2/AD3 (both differential)
EXTERN vuint32_t ADC_CmdQ4[2];   	// unused
EXTERN vuint32_t ADC_CmdQ5[1];   	// for MAP based on trigger from eTPU 26 AD18 

// where the results are stored, 
// size must be exactly right, usually same as above except for time stamps
EXTERN vuint16_t ADC_RsltQ0[2];
EXTERN vuint16_t ADC_RsltQ1[22];
EXTERN vuint16_t ADC_RsltQ2[2];
EXTERN vuint16_t ADC_RsltQ3[2];
EXTERN vuint16_t ADC_RsltQ4[2];
EXTERN vuint16_t ADC_RsltQ5[1];

void init_ADC(void);

